package cn.edu.ctbu.test.service;

import cn.edu.ctbu.test.domain.Student;
import cn.edu.ctbu.test.util.PageHelperUtil;
import org.springframework.data.domain.Example;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;
import org.springframework.data.jpa.domain.Specification;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public interface StudentService {

    List<Student> findAll();


    Page<Student> findAll(Pageable pageable);

    Page<Student> findAll(Example<Student> student,Pageable pageable);

    List<Student> findByNameAndPassWord(String username, String password);


    List<Student> findByName(String name);

    Student search(Long Id);



    Student insert(Student student);

    void delete(Long Id);

    Student getById(Long Id);

    Student update(Student student);
}
